import java.util.Scanner;
import java.util.Locale;

public class FormattingNumbers {

	public static void main(String[] args) {
		
		Locale.setDefault(Locale.ROOT);
		
		Scanner inputConsoleStream = new Scanner(System.in);
		int firstUserInput = inputConsoleStream.nextInt();
		float secondUserInput = inputConsoleStream.nextFloat();
		float thirdUserInput = inputConsoleStream.nextFloat();
		inputConsoleStream.close();
		
		String firstUserInputAsHex = Integer.toHexString(firstUserInput).toUpperCase();
		String firstUserInputAsBinary = String.format("%10s", Integer.toBinaryString(firstUserInput));
		firstUserInputAsBinary = firstUserInputAsBinary.replace(' ', '0');
		
		System.out.printf("|%-10s|%-10s|%10.2f|%-10.3f|", firstUserInputAsHex, firstUserInputAsBinary, secondUserInput, thirdUserInput);
		
	}
}